-- GENERATED SPELL FOR [Corporal Ironridge] --


function spell0_21133(pUnit, Event) --@Set Rails Flag,n/a--
pUnit:FullCastSpellOnTarget(35998,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21133', 647, 1)
end

function Sorts_21133(pUnit, Event)
local choix_sorts_21133 = math.random(0, 0)
if choix_sorts_21133 == 0 then
pUnit:RegisterEvent('spell0_21133', 1, 1)
end
end

function mob21133_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21133', math.random(1500, 3000), 1)
end

function mob21133_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21133_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21133_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21133, 1, 'mob21133_Action')
RegisterUnitEvent(21133, 2, 'mob21133_Leave')
RegisterUnitEvent(21133, 3, 'mob21133_Kill')
RegisterUnitEvent(21133, 4, 'mob21133_Die')
